{extend name="./oscshop/admin/view/public/base.html" /}
{block name="content"}
<div class="page-header">
	<h1>	
		{$breadcrumb1}
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			{$breadcrumb2}
		</small>
	</h1>
</div>

	
	
直推人数{$count1[0]['co']}，VIP数{$count1_vip[0]['co']}
<div class="row">
	<div class="col-xs-12">	
		<div class="table-responsive">
			<table class="table table-striped table-bordered table-hover">
				<thead>
					<tr>											
						<th>用户id</th>
						<th>客户端</th> 
						<th>手机号</th>
						<th>昵称</th>
						<th>姓名</th>
						<th>身份证号</th>
						<th>金豆</th> 
						<th>银豆</th>
						<th>注册时间</th>
						<th>会员级别</th>
						<th>推荐人手机号</th>

	
					</tr>
				</thead>
				<tbody>
						{volist name="list1" id="v" empty="$empty"}
						<tr>						
							<td>{$v.uid}</td>
							<td>{$v.reg_type}</td>
							<td>
								{if condition="$v['reg_type'] NEQ 'weixin'"}
									{$v.username}
								{else/}
									{$v.nickname}
								{/if}
							</td>
							<td>
							{$v.nickname}
							</td>	
							<td>
							{$v.idcardname}
							</td>
							<td>
							{$v.idcard}
							</td>						
							<td>
							{$v.predeposit}
							</td>

							<td>{$v.points}</td>
							<td>{:date('Y-m-d',$v.regdate)}</td>
							<td>

								{if condition="$v['user_state'] eq '0'"}
									游客
								{/if}
								{if condition="$v['user_state'] eq '1'"}
									VIP会员
								{/if}
								{if condition="$v['user_state'] eq '2'"}
									代理
								{/if}
							</td>
							<td>
								{$v.sharemobile}
							</td>
							

						</tr>
						{/volist}	

				</tbody>
				
			</table>
		</div>
	</div>
</div>

二代人数{$count2[0]['co']}，VIP数{$count2_vip[0]['co']}
<div class="row">
	<div class="col-xs-12">	
		<div class="table-responsive">
			<table class="table table-striped table-bordered table-hover">
				<thead>
					<tr>											
						<th>用户id</th>
						<th>客户端</th> 
						<th>手机号</th>
						<th>昵称</th>
						<th>姓名</th>
						<th>身份证号</th>
						<th>金豆</th> 
						<th>银豆</th>
						<th>注册时间</th>
						<th>会员级别</th> 
						<th>推荐人手机号</th>

	
					</tr>
				</thead>
				<tbody>
						{volist name="list2" id="v" empty="$empty"}
						<tr>						
							<td>{$v.uid}</td>
							<td>{$v.reg_type}</td>
							<td>
								{if condition="$v['reg_type'] NEQ 'weixin'"}
									{$v.username}
								{else/}
									{$v.nickname}
								{/if}
							</td>
							<td>
							{$v.nickname}
							</td>	
							<td>
							{$v.idcardname}
							</td>
							<td>
							{$v.idcard}
							</td>						
							<td>
							{$v.predeposit}
							</td>

							<td>
							{$v.points}
							</td>
							<td>{:date('Y-m-d',$v.regdate)}</td>
							<td>

								{if condition="$v['user_state'] eq '0'"}
									游客
								{/if}
								{if condition="$v['user_state'] eq '1'"}
									VIP会员
								{/if}
								{if condition="$v['user_state'] eq '2'"}
									代理
								{/if}
							</td>
							<td>
								{$v.sharemobile}
							</td>
							


						</tr>
						{/volist}	

				</tbody>
				
			</table>
		</div>
	</div>
</div>
{/block}
{block name="javascript"}
<script>	
$(function(){
   $("#search").click(function () {
        var url = $(this).attr('url');
        var query = $('.search-form').find('input,select').serialize();
        query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
        query = query.replace(/^&/g, '');
        if (url.indexOf('?') > 0) {
            url += '&' + query;
        } else {
            url += '?' + query;
        }
        window.location.href = url;
    });	

      $("#search1").click(function () {
        var url = $(this).attr('url');
        var query = $('.search-form').find('input,select').serialize();
        query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
        query = query.replace(/^&/g, '');
        if (url.indexOf('?') > 0) {
            url += '&' + query;
        } else {
            url += '?' + query;
        }
        //alert(url);
        window.location.href = url;
    });	
});
</script>
{/block}